﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace Cstudy.DAL
{
    public class cstAneswers
    {
        public bool AddAnswer(MODEL.cstAneswers answer)
        {
            SqlParameter[] parms = new SqlParameter[]
            {
                new SqlParameter("@pid",answer.pID),
                new SqlParameter("@A",answer.A),
                new SqlParameter("@B",answer.B),
                new SqlParameter("@C",answer.C),
                new SqlParameter("@D",answer.D)
            };
            return COM.SQLHelper.ExecuteNonQuery("sp_AddAnswer", parms);
        }
    }
}
